﻿using System;

namespace enyo.g11n
{
    //TODO:
    public class Resources
    {
        public Resources(ResParam param)
        {
        }

        [ImportMember("$L")]
        public string _L(string textToTranslate)
        {
            return null;
        }

        /// <summary>
        /// Gets a localized file. The path argument is a string containing the path, relative to a locale directory, of the file to load.
        /// </summary>
        /// <param name="path">
        /// The sequence of locations where it looks for the file is as follows:
        /// <para>The variant directory, if there is one (e.g., resources/fr/fr/sfr/&lt;path&gt;).</para>
        /// <para>The region directory, if there is one (e.g., resources/fr/fr/&lt;path&gt;).</para>
        /// <para>The language directory, if there is one (e.g., resources/fr/&lt;path&gt;).</para>
        /// <para>The English directory (e.g., resources/en/&lt;path&gt;).</para>
        /// <para>The unlocalized files under the root (e.g., &lt;path&gt;).</para>
        /// </param>
        /// <returns>If the file cannot be found, the function returns undefined.</returns>
        //Extend: Not supported now.
        //public object/*File*/ GetResource(string path)
        //{
        //    return null;
        //}
    }
}
